import request from '@/utils/request'

// 查询安全资料文件列表
export function listSafeDoc(query) {
  return request({
    url: '/safeDoc/safeDoc/list',
    method: 'get',
    params: query
  })
}

// 查询安全资料文件详细
export function getSafeDoc(id) {
  return request({
    url: '/safeDoc/safeDoc/' + id,
    method: 'get'
  })
}

// 新增安全资料文件
export function addSafeDoc(data) {
  return request({
    url: '/safeDoc/safeDoc',
    method: 'post',
    data: data
  })
}

// 修改安全资料文件
export function updateSafeDoc(data) {
  return request({
    url: '/safeDoc/safeDoc',
    method: 'put',
    data: data
  })
}

// 删除安全资料文件
export function delSafeDoc(id) {
  return request({
    url: '/safeDoc/safeDoc/' + id,
    method: 'delete'
  })
}
